import junit.framework.*;
/** cazuri de test junit pentru EqualsDemo
*/

public class EqualsDemoTest extends TestCase {
/**un obiect testat*/
EqualsDemo d1;
/**alt obiect testat*/
EqualsDemo d2;

/**metoda init()*/
public void setUp(){
d1 = new EqualsDemo();
d2 = new EqualsDemo();
   }
/**contructor pentru junit*/
public EqualsDemoTest(String name){
super(name);
   }
public void testSymmetry(){
assert (d1.equals(d1));
   }
public void testSymmetric(){
assert(d1.equals(d2) && d2.equals(d1));
   }

public void testCaution(){
assert(!d1.equals(null));
   }
 }
